<%@ page language="java" import="java.util.*" import="com.gxuwz.medical.domain.menu.*" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="../../css/pintuer.css">
<link rel="stylesheet" href="../../css/admin.css">
<script src="../../js/jquery-1.4.4.min.js"></script>
<script src="../../js/pintuer.js"></script>
</head>
<body>
<%
	String menuid =request.getParameter("menuid");
	menuid = new String(menuid.getBytes("ISO-8859-1"),"UTF-8");
	Menu m =new Menu();
	m.setMenuid(menuid);
	m=m.query();
 %>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改权限</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="edit.right">  
      <div class="form-group">
        <div class="label">
          <label>权限编码：</label>
        </div>
        <div class="field">
          <input  type="text" class="input w50" value="<%=m.getMenuid()%>" name="menuid"  disabled="disabled"/>
          <input  type="text" class="input w50" value="<%=m.getMenuid()%>" name="menuid"  style="display: none"/>
	    </div>
      </div>
      
      
      <div class="form-group">
        <div class="label">
          <label>权限名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=m.getMenuname()%>" name="menuname" data-validate="required:请输入权限编码" />
	    </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>父权限</label>
        </div>
        <div class="field">
		<select name="menupid">
         <%
        	Menu tmp = new Menu();
        	List<Menu> list = tmp.queryAll();
        	for(int i=0;i<list.size();i++){
        		
         %>
         	<option  value="<%=list.get(i).getMenuid()%>"><%=list.get(i).getMenuname() %></option>
         <%
         	}
          %>       
        </select>
	    </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>URL：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=m.getUrl()%>" name="url" data-validate="required:请输入url" />
	    </div>
      </div>           
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
      
    </form>
  </div>
</div>

</body></html>